<template>
	<div>
    {{price}}
	</div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator';
import { state } from '@/afterSales/views/spare/store/spareData'
@Component({
  name: 'totalPrice'
})
export default class extends Vue {
  @Prop() public item!: any
  private get price () {
    return state.allServiceObj[this.item.id]?.price * this.item.count
  }
}
</script>
